Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat/add form with loader #106

Merged
merged 6 commits into from
Apr 25, 2024
Merged

Feat/add form with loader #106

merged 6 commits into from
Apr 25, 2024

Conversation

malmen237
Copy link
Contributor

No description provided.

@malmen237 malmen237 requested a review from martinstark April 24, 2024 11:48
@malmen237 malmen237 self-assigned this Apr 24, 2024
Comment on lines 68 to +75
const {
control,
reset,
formState,
formState: { errors, isSubmitSuccessful },
register,
handleSubmit,
} = useForm<FormValue>();

const productionId = useWatch({ name: "productionId", control });
const [productionId, setProductionId] = useState<null | number>(null);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had to change back to the old way, could't get useWatch to update when the value was moved into a child-component.

@martinstark martinstark merged commit 0479097 into main Apr 25, 2024
2 checks passed
@martinstark martinstark deleted the feat/add-form-with-loader branch April 25, 2024 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants